import request from '@/utils/request'

const api = {
    provinceLink: '/notControl/provinceLink',
    cityLink: '/notControl/cityLink',
    areaLink: '/notControl/areaLink',
    activityTypeList: '/notControl/activity',
    storeList: '/notControl/storeList',
    stores: '/notControl/store',
    couponList: 'notControl/discountLists'
}

export function stores (parameter) {
    return request({
        url: api.stores,
        method: 'get',
        params: parameter
      })
}

export function couponList (parameter) {
    return request({
        url: api.couponList,
        method: 'get',
        params: parameter
      })
}

export function storeList (parameter) {
    return request({
        url: api.storeList,
        method: 'get',
        params: parameter
      })
}

export function activityTypeList (parameter) {
    return request({
        url: api.activityTypeList,
        method: 'get',
        params: parameter
      })
}

export function provinceLink () {
    return request({
        url: api.provinceLink,
        method: 'get'
      })
}

export function cityLink (parameter) {
    return request({
        url: api.cityLink,
        method: 'get',
        params: parameter
      })
}

export function areaLink (parameter) {
    return request({
        url: api.areaLink,
        method: 'get',
        params: parameter
      })
}
